Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: improve download and restart logic #622

Merged
merged 4 commits into from
Oct 11, 2024

Conversation

bastiandoetsch
Copy link
Collaborator

Description

  • register download listener

  • on successful download:

  • stop all scans

  • cancel all progresses

  • shutdown

  • sleep for a second

  • restart Language Server

  • connect all workspace folders to newly started LS

Checklist

  • Tests added and all succeed
  • Linted
  • CHANGELOG.md updated
  • README.md updated, if user-facing

Screenshots / GIFs

Visuals that may help the reviewer. Please add screenshots for any UI change. GIFs are most welcome!

@bastiandoetsch bastiandoetsch requested a review from a team as a code owner October 10, 2024 11:49
Copy link
Contributor

@acke acke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

This now blocks restarts by usint the init lock on updates doing this:
- lock initialization
- shutdown language server
- move downloaded file
- unlock initialization
- restart language server
@bastiandoetsch bastiandoetsch merged commit f09ce0a into master Oct 11, 2024
9 checks passed
@bastiandoetsch bastiandoetsch deleted the fix/improve-download-and-restart-logic branch October 11, 2024 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants